<%@ page contentType="text/html;charset=UTF-8" %>
<!--[if lte IE 7]>
    <div id="errorie"><div>您还在使用老掉牙的IE，正常使用系统前请升级您的浏览器到 IE8以上版本 <a target="_blank" href="http://windows.microsoft.com/zh-cn/internet-explorer/ie-8-worldwide-languages">点击升级</a>&nbsp;&nbsp;强烈建议您更改换浏览器：<a href="http://down.tech.sina.com.cn/content/40975.html" target="_blank">谷歌 Chrome</a></div></div>
<![endif]-->
 <header id="bjui-header">
        <div class="bjui-navbar-header">
            <button type="button" class="bjui-navbar-toggle btn-default" data-toggle="collapse" data-target="#bjui-navbar-collapse">
                <i class="fa fa-bars"></i>
            </button>

            <!-- 图标 -->
            <!-- 
            <a class="bjui-navbar-logo" href="#"><img src="images/logo.png"></a>
             -->
        </div>

        <nav id="bjui-navbar-collapse">

            <ul class="bjui-navbar-right">
                <li class="datetime"><div><span id="bjui-date"></span> <span id="bjui-clock"></span></div></li>
                <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">我的账户 <span class="caret"></span></a>
                    <ul class="dropdown-menu" role="menu">
                        <li><a href="/UserDangjian/edit.do" data-toggle="dialog" data-id="changepwd_page" data-mask="true" data-width="400" data-height="260">&nbsp;<span class="glyphicon glyphicon-lock"></span> 修改密码&nbsp;</a></li>
                        <li><a href="/UserDangjian/edit.do" data-toggle="dialog" data-id="changepwd_page" data-mask="true" data-width="1000" data-height="600">&nbsp;<span class="fa fa-user"></span> 我的资料</a></li>
                        <li class="divider"></li>
                        <li><a href="./logout.do" class="red">&nbsp;<span class="glyphicon glyphicon-off"></span> 注销登陆</a></li>
                    </ul>
                </li>
            </ul>
        </nav>

        <div id="bjui-hnav">
            <button type="button" class="btn-default bjui-hnav-more-left" title="导航菜单左移"><i class="fa fa-angle-double-left"></i></button>
            <div id="bjui-hnav-navbar-box">
                <ul id="bjui-hnav-navbar">
                 <c:forEach var="menu" items="${menuList}" varStatus="status">
                 	<li  class="${menu.menuTarget}"><a href="javascript:;" data-toggle="slidebar" onclick="loadMenuUrl('${menu.menuModel}','${menu.menuUrl}')"><i class="fa fa-file-word-o"></i> ${menu.menuName }</a>
                        <div class="items hide"  >
	                          <ul id="${menu.menuModel}" class="ztree ztree_main">
	                        </ul>
                         </div>
                    </li>
                 </c:forEach>
                </ul>
            </div>
            <button type="button" class="btn-default bjui-hnav-more-right" title="导航菜单右移"><i class="fa fa-angle-double-right"></i></button>

        </div>

    </header>
    <script type="text/javascript">  
    	function loadMenuUrl(model,url){
    		var setting = { 
    	    		async: {
    	    			enable: true,
    	    			url: url,
    	    			autoParam: [ "id", "name"]
    	    		},
    	    		callback : { //回调函数  
    	    			onClick: MainMenuClick
    	            } ,
    	    		data: {
    	    			simpleData: {
    	    				enable: true,
    	    				idKey: "id",
    	    				pIdKey: "pId",
    	    				rootPId: 0
    	    			}
    	    		} 
    	    		 
    	    	};  
    		$.fn.zTree.init($("#"+model), setting);
    	}
    	
</script>  